﻿using System;
using System.ComponentModel.DataAnnotations;

namespace JNPF.Basics.Models.Extend.Dtos.ProjectGantt
{
    /// <summary>
    /// 添加项目任务
    /// </summary>
    public class ProjectGanttTaskCrInput
    {
        /// <summary>
        /// 上级id
        /// </summary>
        [Required(ErrorMessage = "上级id不能为空")]
        public string parentId { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        [Required(ErrorMessage = "开始时间不能为空")]
        public DateTime? startTime { get; set; }
        /// <summary>
        /// 完成进度
        /// </summary>
        [Required(ErrorMessage = "完成进度不能为空")]
        public int? schedule { get; set; }
        /// <summary>
        /// 完成进度
        /// </summary>
        [Required(ErrorMessage = "完成进度不能为空")]
        public double timeLimit { get; set; }
        /// <summary>
        /// 任务名称
        /// </summary>
        [Required(ErrorMessage = "任务名称不能为空")]
        public string fullName { get; set; }
        /// <summary>
        /// 结束时间	
        /// </summary>
        [Required(ErrorMessage = "结束时间不能为空")]
        public DateTime? endTime { get; set; }
        /// <summary>
        /// 参与人员
        /// </summary>
        [Required(ErrorMessage = "参与人员不能为空")]
        public string managerIds { get; set; }
        /// <summary>
        /// 标记颜色
        /// </summary>
        [Required(ErrorMessage = "标记颜色不能为空")]
        public string signColor { get; set; }
        /// <summary>
        /// 标记
        /// </summary>
        [Required(ErrorMessage = "标记不能为空")]
        public string sign { get; set; }
        /// <summary>
        /// 项目id
        /// </summary>
        [Required(ErrorMessage = "项目id不能为空")]
        public string projectId { get; set; }
        /// <summary>
        /// 任务描述
        /// </summary>
        [Required(ErrorMessage = "任务描述不能为空")]
        public string description { get; set; }
    }
}
